package banco;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import javax.swing.JOptionPane;


/**
 * @author Alexander
 */
 

public class DaoConexao {

    public static Connection getConnection() throws SQLException {  
         try {  
             Class.forName("jdbc:mysql://localhost/teste");  
             return DriverManager.getConnection("jdbc:mysql://localhost:3306/barrero","root","123456");  
         } catch (ClassNotFoundException e) {  
             throw new SQLException(e.getMessage());  
         }  
  }
    
